<!--
Zeke Elder - zbe@andrew.cmu.edu
Amal Chemmany - achemman@andrew.cmu.edu
Nishant Kumar - nkumar1@andrew.cmu.edu
15-637
4/2/2012
-->
<html>
<head>
<title>Welcome to FitHub!</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/fithub.js"> </script>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
</head>
<body>
<c:if test="${openid == null}">
<c:redirect url="welcome.jsp"/>
</c:if>
<div id="header" class="header_container"><br />
<a href="./welcome.jsp">FitHub</a></div>
<div class="body_container">

<br />
<br />
Welcome to FitHub - a social networking website where users can create
workouts, set weight-loss goals, and track progress.<br />
<br />
You have successfully authenticated using OpenId. Please enter the following information to continue with Fithub

<div class="centered_div">
<div id="register_div">
		
		<h2> Registration</h2>
		<form name="login" action="registeropenid.do" method="post">
			<table>
			<tbody>
			<c:forEach var="error" items="${errors}">
				<tr><h3 style="color:red"> ${error} </h3></tr>
			</c:forEach>
				<tr>
								<td colspan="2">First Name :</td>
								<td><input type="text" name="firstName"
									value="${registerForm.firstName}" /></td>
							</tr>
							<tr>
								<td colspan="2">Last Name :</td>
								<td><input type="text" name="lastName"
									value="${registerForm.lastName}" /></td>
							</tr>
		  	<tr >
		   	<td colspan="2">Email Address :</td> <td> <input type="text" name="email" value="${registerForm.email}"/> </td>
		  	</tr>
		   	<td colspan="2">Age :</td> <td> <input type="text" name="age" value="${registerForm.age}"/> </td>
		  	</tr>
		  	<tr >
		   	<td colspan="2">Weight (lbs) :</td> <td> <input type="text" name="weight" value="${registerForm.weight}"/> </td>
		  	</tr>
		  	<tr >
		   	<td colspan="2">Timezone :</td> <td> <input type="text" name="timeZone" value="${registerForm.timeZone}"/> </td>
		  	</tr>
		  		<tr >
		   	<td colspan="3" class="form_submit" > <input type="submit" value="register" /> </td>
		  	</tr>
			</table>
		</form>
		
		</div>
		</div>
	</div>
</body>
</html>